#!/usr/bin/env bash
set -x
set -eu

SOCKET={{mysql_data_dir}}/mysql.sock

# root password
mysql -uroot -S $SOCKET \
-e "set session sql_log_bin = 0;alter user 'root'@'localhost' identified WITH mysql_native_password by '{{ mysql_root_password }}';FLUSH PRIVILEGES;"
